#!/usr/bin/env python
"使用multiprocessing和os.exec起始一个新程序"

import os
from multiprocessing import Process


def run_program(id_int):
	os.execlp('python', 'python', 'child.py', str(id_int))


def main():
	for i_id_int in range(5):
		Process(target=run_program, args=(i_id_int,)).start()
	print('parent exit')


if __name__ == '__main__':
	main()
